package com.aoxin.mapper.course.webCourse;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.aoxin.model.course.SlfClassChildren;

public interface SlfClassChildrenMapper {

    /**
     * 新增班级关联关系
     * @param slfClassChildren
     * @return
     */
    Integer insertClassChildren(SlfClassChildren slfClassChildren);


    /**
     * 修改班级关联关系
     * @param slfClassChildren
     * @return
     */
    Integer updateClassChildren(SlfClassChildren slfClassChildren);

    /**
     * 删除班级关联关系
     * @param classChildrenId
     * @return
     */
    Integer deleteClassChildren(Integer classChildrenId);

    /**
     * 查询班级关联关系
     * @param slfClassChildren
     * @return
     */
    List<SlfClassChildren> getClassChildren(SlfClassChildren slfClassChildren);

    /**
     * 班级批量插入孩子
     * @param classId
     * @param childrenIds
     * @return
     */
    Integer batchInsertClassChildren(@Param("classId") Integer classId, @Param("childrenIds")List<Integer> childrenIds);


    /**
     * 批量删除孩子班级关联关系
     * @param classId
     * @param childrenIds
     * @return
     */
    Integer batchDeleteClassChildren(@Param("classId") Integer classId,@Param("childrenIds") List<Integer> childrenIds);

    /**
     * 通过班级Id查询孩子
     * @param classId
     * @return
     */
    List<Integer> getChildrenIdList(Integer classId);




}